
import pandas as pd

# 创建两个Series对象
series_apples = pd.Series([1,3,7,4])
series_bananas=pd.Series([2,6,3,5])

# 将两个Series对象相加，得到DataFrame,并指定列名
df = pd.DataFrame({"Apples":series_apples,"Bananas":series_bananas})


print(df)